package com.smart.manager.pop.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.member.entities.views.MemberView;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.time.LocalDateTime;

/**
 * C2C邀请达成记录
 *
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class PopDisRecord extends BaseLongModel {




    @ApiModelProperty(value = "被邀请人")
    @ManyToOne
    @JoinColumn(name = "member", referencedColumnName = "id")
    private MemberView member;

    @ApiModelProperty(value = "邀请人")
    @ManyToOne
    @JoinColumn(name = "inviter", referencedColumnName = "id")
    private PopDisInviter inviter;


    @ApiModelProperty(value = "绑定时间")
    private LocalDateTime bindTime;



}
